﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MtgPrinter
{
    public partial class ProgressDialog : Form
    {
        public ProgressDialog()
        {
            InitializeComponent();
        }

        private delegate void SetProgressValueDelegate(int value);
        public void SetProgressValue(int value)
        {
            if (!progressBar1.InvokeRequired)
            {
                progressBar1.Value = value;
            }
            else
            {
                progressBar1.Invoke(new SetProgressValueDelegate(SetProgressValue), new object[] { value });
            }
        }

        private void progressBar1_Click(object sender, EventArgs e)
        {
            
        }
    }
}
